/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package upgmdendro.drawing.drawables;

import java.awt.Color;
import java.awt.Graphics;
import upgmdendro.drawing.GraphicParameters;

/**
 *
 * @author psychollek
 */
public class DrawableText implements Drawable{
    
    private String content;
    private int x;
    private int y;

    public DrawableText(String content,int x, int y) {
        this.content = content;
        this.x = x;
        this.y = y;
    }

    @Override
    public void paint() {
        Graphics g = GraphicParameters.getGraphics();
        int h = GraphicParameters.getHeight();
        Color c = g.getColor();
        g.setColor(Color.BLACK);
        g.drawString(content, x, h-y);
        g.setColor(c);
    }

}
